﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MODEL;

namespace Service
{
    public interface IUserService
    {
        Task<IEnumerable<User>> GetUsersAsync(UserQueryCriteria criteria = null);

        Task<IEnumerable<string>> QueryUserIndustry();

        bool LogOn(string account, string password);

        bool ExistUser(string account);

        Task<int> AddUser(string account, string password, string userName);

        Task<int> DeleteUser(int userId);

        Task<int> UpdateUserState(int userId, string state);
    }
}
